
//  EvaluatePicItem.m
//  FD
//
//  Created by xiaofang wang on 2018/11/15.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import "EvaluatePicItem.h"
@interface EvaluatePicItem()
@end

@implementation EvaluatePicItem
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupView];
    }
    return self;
}
- (void)setupView {
    [self.contentView addSubview:self.iv];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    [self.iv mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
}

- (UIImageView *)iv {
    if (!_iv) {
        _iv = [UIImageView new];
        _iv.backgroundColor = [UIColor brownColor];
    }
    return _iv;
}

@end
